package com.asman.vr.dto

import androidx.annotation.MainThread
import com.asman.vr.network.Api
import com.asman.vr.network.liveData
import java.util.concurrent.Executor

class DesignerRepository(private val api: Api, private val networkExecutor: Executor) {

    @MainThread
    fun getDesignerInfo(designerId: Long) = liveData(api.getDesignerInfo(designerId))

    @MainThread
    fun getDesignerCaseDetail(designerId: Long, caseId: Long) = liveData(
        api.getDesignerCaseDetail(designerId, caseId)
    )

    @MainThread
    fun getDesignerSaleGoodList(designerId: Long, pageNo: Int, pageSize: Int) = liveData(
        api.getDesignerSaleGoodList(designerId, pageNo, pageSize)
    )

    @MainThread
    fun getDesignerCaseList(designerId: Long, pageNo: Int, pageSize: Int) = liveData(
        api.getDesignerCaseList(designerId, pageNo, pageSize)
    )


}